class A {
  name = ''
  constructor(name){
    this.name = name
  }
  getName(){
    return this.name
  }
}
class B extends A{
  constructor(name,age) {
    super(name)
    this.age = age
  }
  getAge () {
    return this.age
  }
  print() {
    console.log( `name ${ this.name },age ${this.age} `)
  }
  
}